package com.example.aitoedu.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

@Accessors(chain = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "全部对话信息")
public class TitleVO {

    @Schema(description = "对话标识id")
    private Long titleId;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "最新对话日期")
    @JsonFormat(pattern = "yyyy.M.d",timezone = "GMT+8")
    private LocalDateTime newTime;

    @Schema(description = "总数")
    private Integer total;

    @Schema(description = "1为收藏,0为未收藏")
    private Integer save;

    @Schema(description = "具体对话内容")
    @JsonIgnore
    private List<ConversaiotnVO> conversaiotnVOList;

}
